package light.head.dao.inv;

import java.util.List;

import light.head.framework.base.BaseDAO;
import light.head.model.inv.InvSaleInfoItem;

import org.springframework.stereotype.Service;
@Service
public class InvSaleInfoItemDAO extends BaseDAO<InvSaleInfoItem, Integer>{
	private final static String sql_findByIsc = "FROM InvSaleInfoItem isi WHERE isi.deleted = 0 AND isi.isc = ?";
	/**
	 * 通过零售单编号获取序列号
	 * @param isc			零售单编号
	 */
	public List<InvSaleInfoItem> findByIsc(Integer isc) {
		if (null == isc) return null;
		return find(sql_findByIsc, null, null, isc);
	}
}
